<div class="resume-item job" style="background: #fff;padding: 15px;">
    <div class="layui-row">
        <div class="block-name layui-col-xs8">
            工作信息
        </div>
        <div style="cursor: pointer;text-align: right;overflow: hidden">
            <a class="module-add" href="javascript:;" style="padding:5px 15px;color: #DD4517">新增</a>
        </div>
    </div>
    <div class="resume-module" style="padding:40px 10px 5px 10px;background: #f5f5f5;display: none">
        <form class="layui-form"  lay-filter="form-job" onsubmit="return false">
            <div class="layui-form-item">
                <label class="layui-form-label">公司名称：</label>

                <div class="layui-input-block">
                    <input type="text" name="company" lay-verify="required" placeholder="公司名称"
                           class="layui-input" value="">
                    <input type="hidden" name="id" class="layui-input" value="0">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">职位名称：</label>

                <div class="layui-input-block">
                    <input type="text" name="vocation_name" lay-verify="required" placeholder="请输入职位"
                           class="layui-input" value="">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">在职时间：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="start_data" lay-verify="date" placeholder="yyyy-MM-dd"
                               autocomplete="off" class="layui-input layui-date">
                    </div>
                    <div class="layui-form-mid">-</div>
                    <div class="layui-input-inline">
                        <input type="text" name="end_data" id="date" lay-verify="date" placeholder="yyyy-MM-dd"
                               autocomplete="off" class="layui-input layui-date">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">税前工资：</label>
                <div class="layui-input-block">
                    <input type="text" name="salary" lay-verify="required" placeholder=""
                           class="layui-input" value="">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">工作内容：</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入内容" id="job_content" style="height:240px;" class="layui-textarea" name="content"></textarea>
                </div>
            </div>
            <div class="layui-form-item" style="text-align: center;margin-top: 30px">
                <button type="submit" class="layui-btn layui-btn-sm submit"
                        style="background: #DD4517;border-radius: 20px;padding: 0 20px;" lay-submit="" lay-filter="modal-job">
                    保存
                </button>
                <button type="button" class="layui-btn layui-btn-sm cancel" >
                    取消
                </button>
            </div>
        </form>
    </div>
    <div class="resume-content">
        @foreach($jobs as $job)
            <div class="default layui-row layui-form-item"
                 style="margin-bottom: 10px;padding: 15px 10px 5px 10px">
                <div class="layui-col-xs12 layui-form-item">
                    <div class="layui-col-xs10 company_name" style="font-size: 18px">
                        {{$job->company_name}}
                    </div>
                    <div class="layui-col-xs2 job-edit" data-id="{{$job->id}}"
                         style="float: right;color: #DD4517;text-align: right;padding: 0 5px;cursor: pointer">
                        编辑
                    </div>
                </div>
                <div class="layui-col-xs12 layui-form-item">
                    <label style="font-size: 16px;color: #666">
                        <span class="vocation_name">{{$job->vocation_name}}</span>
                        <span class="wages">{{$job->salary}}</span>
                    </label>
                    <input type="hidden" id="d1" value="{{$job->start_data}}">
                    <input type="hidden" id="d2" value="{{$job->end_data}}">
                </div>
                <div class="layui-col-xs12" style="color: #666;line-height: 24px">
                    <pre class="job-content"><?php echo $job->content?></pre>
                </div>
            </div>
        @endforeach
    </div>
</div>
